<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
		<link href="../css/bgcss.css"
			rel="stylesheet" type="text/css" />
<script type="text/javascript">
function iframeResizeHeight(frame_name,body_name,offset) {	
	parent.document.getElementById(frame_name).height=document.getElementById(body_name).offsetHeight+offset;
}

function Resize(){
	
 var frame_name="frame_content";
 var body_name="content"; 
 if(parent.document.getElementById(frame_name)){
  return iframeResizeHeight(frame_name,body_name,0);
 }
}

function openItem(id){	
	
	
	if(navigator.appName=="Microsoft Internet Explorer"){	
		window.showModalDialog('goodplan?method=queryForOne&id='+id,'','dialogWidth=1024px;dialogHeight=768px;scroll=true');
		
	}
	else if(navigator.appName=="Netscape"){		
		window.open('goodplan?method=queryForOne&id='+id,'','width=1024,height=768,modal=yes,location=no,scrollbars=yes,status=no,toolbar=no,resizble=yes'); 
	}	
}
</script>
</head>

<body onload="Resize();">
			<!-- 正文开始 -->
			<div id="content">
				<table width="90%" border="0" cellpadding="0" cellspacing="1"
						bgcolor="#c9c9c9">	
						<tr>					
				<td height="22" bgcolor="#FFFFFF">
					<div align="center">
						<strong><span class="STYLE1">序号</span>
						</strong>
					</div>
				</td>
				<td height="22" bgcolor="#FFFFFF">
					<div align="center">
						<strong><span class="STYLE1">门店</span>
						</strong>
					</div>
				</td>
				<td height="22" bgcolor="#FFFFFF">
					<div align="center">
						<strong><span class="STYLE1">单据类型</span>
						</strong>
					</div>
				</td>		
				<td height="22" bgcolor="#FFFFFF">
					<div align="center">
						<strong><span class="STYLE1">录单人</span>
						</strong>
					</div>								
				</td>
					<td height="22" bgcolor="#FFFFFF">
					<div align="center" width="150">
						<strong><span class="STYLE1">录单时间</span>
						</strong>
					</div>								
					</td>
					<td height="22" bgcolor="#FFFFFF">
					<div align="center">
						<strong><span class="STYLE1">操作</span>
						</strong>
					</div>								
					</td>		
				
								
						</tr>
			
				<c:forEach items="${list}" var="item" varStatus="var">
							<tr>					
				 <td height="22" bgcolor="#FFFFFF">
				 <div align="center"><span class="STYLE3">
				${var.count}</span>
					</div>
				</td>
				<td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${item.doorStore_Name}</span></div></td>
				<td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">	${item.goodPlan_Type==1?'原材料供应单':item.goodPlan_Type==2?'下午补货单':item.goodPlan_Type==3?'明日补货单':item.goodPlan_Type==4?'早点要货单':item.goodPlan_Type==5?'早点补货单':''}</span></div></td>
						
				<td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${item.goodPlan_User}</span></div></td>
				<td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${item.goodPlan_date}</span></div></td>		
				<td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3"><input type="button" value="查看" onclick="openItem(${item.goodPlan_Id})" /></span></div></td>	
									
						</tr>
						</c:forEach>
									
					</table>
					</div>
				</body>
				<!-- 正文结束 -->	
			
				</html>